############################
##                       _oo0oo_
##                      o8888888o
##                      88" . "88
##                      (| -_- |)
##                      0\  =  /0
##                    ___/`---'\___
##                  .' \\|     |// '.
##                 / \\|||  :  |||// \
##                / _||||| -:- |||||- \
##               |   | \\\  - /// |   |
##               | \_|  ''\---/''  |_/ |
##               \  .-\__  '-'  ___/-. /
##             ___'. .'  /--.--\  `. .'___
##          ."" '<  `.___\_<|>_/___.' >' "".
##         | | :  `- \`.;`\ _ /`;.`/ - ` : | |
##         \  \ `_.   \_ __\ /__ _/   .-` /  /
##     =====`-.____`.___ \_____/___.-`___.-'=====
##                       `=---='
##
##
##     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##
##           佛祖保佑     永不宕机     永无BUG
##
##LastEditors: PartyParrot(__init__)
##Date: 2022-06-12 19:08:11
##LastEditTime: 2022-06-12 20:56:46
##FilePath: EasyRun.py
##Author: PartyParrot(__init__)
##Description: 
############################

# -*- coding:utf-8 -*-
from .EasyLexer import *

def run(file_name, text):
    # 该函数接受两个参数，file_name 与 text
    """\
    file_name: 文件名
    text: 代码
    """
    lexer = Lexer(file_name, text)
    tokens, errors = lexer.make_tokens()
    
    return tokens, errors